package com.assignment.main;

import com.assignment.gui.SearchScreen;

/**
 * 
 * 
 * This interface class defines methods which are called by implementing classes
 * when an object is selected from the JList inside the SearchScreen Frame
 * 
 * @author John Wright and Luke Williams
 * 
 * @version 1.0
 */
public interface Selectable {

	/**
	 * 
	 * Method which is called when the user wishes to view an objects details
	 * 
	 * @param screen
	 *            The SearchScreen object from which this method is called
	 * 
	 * 
	 */
	public void onSelectToView(SearchScreen screen);

	/**
	 * 
	 * Method which is called when the user wishes to edit an objects details
	 * 
	 * @param screen
	 *            The SearchScreen object from which this method is called
	 * 
	 * 
	 */
	public void onSelectToEdit(SearchScreen screen);

	/**
	 * Method which is called when the user wishes to delete an object
	 */
	public void onSelectToDelete();

}
